home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / circuits / irsim-ca.2 / irsim-ca / irsim-cap-9.2 / src / ana11 / update.c < prev    next >
C/C++ Source or Header  |  1993-01-15  |  1KB  |  51 lines

  1. /*
  2.  *     ********************************************************************* 
  3.  *     * Copyright (C) 1988, 1990 Stanford University.                     * 
  4.  *     * Permission to use, copy, modify, and distribute this              * 
  5.  *     * software and its documentation for any purpose and without        * 
  6.  *     * fee is hereby granted, provided that the above copyright          * 
  7.  *     * notice appear in all copies.  Stanford University                 * 
  8.  *     * makes no representations about the suitability of this            * 
  9.  *     * software for any purpose.  It is provided "as is" without         * 
  10.  *     * express or implied warranty.  Export of this software outside     * 
  11.  *     * of the United States of America may require an export license.    * 
  12.  *     *********************************************************************
  13.  */
  14.  
  15. #include "ana.h"
  16. #include "ana_glob.h"
  17.  
  18.  
  19. public    int         autoScroll = TRUE;
  20. public    int         updatePending = FALSE;
  21. public    TimeType    updPendTime;
  22. public    int         freezeWindow = FALSE;
  23.  
  24.  
  25. public void ScrollUpdate( s )
  26.   char  *s;
  27.   {
  28.     autoScroll ^= TRUE;            /* toggle flag */
  29.  
  30.     if( autoScroll )
  31.     *s = MENU_MARK;
  32.     else
  33.     *s = MENU_UNMARK;
  34.   }
  35.  
  36.  
  37. public void DisableScroll()
  38.   {
  39.     freezeWindow = TRUE;
  40.   }
  41.  
  42.  
  43. public void RestoreScroll()
  44.   {
  45.     freezeWindow = FALSE;
  46.     if( updatePending )
  47.     UpdateWindow( updPendTime );
  48.  
  49.     updatePending = FALSE;
  50.   }
  51.